package com.ys.entity.base;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_IncomePayItem", catalog="Id")
public class TbIncomePayItem extends BaseEntity<TbIncomePayItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="IncomePayBid", nameJava="incomePayBid", typeDataBase="varchar")
	private String incomePayBid;
	@YsField(nameDataBase="UserPayApplyItemId", nameJava="userPayApplyItemId", typeDataBase="bigint")
	private Long userPayApplyItemId;
	@YsField(nameDataBase="Vbz", nameJava="vbz", typeDataBase="varchar")
	private String vbz;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbIncomePayItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getIncomePayBid() {
		return incomePayBid;
	}
	public TbIncomePayItem setIncomePayBid(String incomePayBid) {
		this.incomePayBid = incomePayBid;
		return this;
	}
	public Long getUserPayApplyItemId() {
		return userPayApplyItemId;
	}
	public TbIncomePayItem setUserPayApplyItemId(Long userPayApplyItemId) {
		this.userPayApplyItemId = userPayApplyItemId;
		return this;
	}
	public String getVbz() {
		return vbz;
	}
	public TbIncomePayItem setVbz(String vbz) {
		this.vbz = vbz;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbIncomePayItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbIncomePayItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbIncomePayItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbIncomePayItem tbIncomePayItem(
		String incomePayBid,
		Long userPayApplyItemId,
		String vbz,
		Integer status
			) {
		TbIncomePayItem entity = new TbIncomePayItem();
		entity.setIncomePayBid(incomePayBid);
		entity.setUserPayApplyItemId(userPayApplyItemId);
		entity.setVbz(vbz);
		entity.setStatus(status);
		return entity;
	}
}